package com.yedean.mall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yedean.mall.dto.PmsProductParam;
import com.yedean.mall.entity.PmsProduct;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 商品信息 服务类
 * </p>
 *
 * @author yedean
 * @since 2022-08-09
 */
public interface IPmsProductService extends IService<PmsProduct> {

    /**
     * 创建商品
     */
    @Transactional(isolation = Isolation.DEFAULT,propagation = Propagation.REQUIRED)
    void create(PmsProductParam productParam);

}
